package com.woniuxy.searchassembly.controller;

import com.woniuxy.common.Result;
import com.woniuxy.hotel.api.HotelInfoManagement;
import com.woniuxy.hotel.api.SortPointAPI;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author kevin kwok
 * @create 2021-05-29 11:48
 */
@Slf4j
@RestController
public class SortPointController implements SortPointAPI {
    @Resource
    private HotelInfoManagement hotelInfoManagement;

    @Override
    public Result queryByFeature(Integer featasureName) {
        Result result = hotelInfoManagement.queryHotelInfoByType(featasureName);
        return result;
    }

}
